package com.galen.chapter2.service;

import com.galen.chapter2.entity.Chapter2User;
import com.galen.chapter2.repository.Chapter2UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户服务接口实现类
 *
 * @author GalenGao
 * @version Id: UserServiceImpl.java, v 0.1 2022/2/24 12:15 上午 GalenGao Exp $$
 */
@Service
@RequiredArgsConstructor
public class Chapter2UserServiceImpl implements Chapter2UserService {

    private final Chapter2UserRepository chapter2UserRepository;

    @Override
    public Chapter2User findByEmailAndAddress(String email, String address) {
        return chapter2UserRepository.findByEmailAndAddress(email, address);
    }
}
